# -*- coding: utf-8 -*-
import os

try:
    PROFILE = os.environ["SPD_PROFILE"]
except Exception as e:
    PROFILE = 'dev'

if PROFILE == 'dev':
    db_host = 'localhost',
    db_user = 'foxmind',
    db_password = 'Foxmind0827!',
    db_port = 3306,
    db_database = 'foxmind',
    db_charset = 'utf8'
elif PROFILE == 'vm':
    db_host = 'localhost',
    db_user = 'foxmind',
    db_password = 'Foxmind0827!',
    db_port = 3306,
    db_database = 'foxmind',
    db_charset = 'utf8'
elif PROFILE == 'test':
    db_host = 'localhost',
    db_user = 'foxmind',
    db_password = 'Foxmind0827!',
    db_port = 3306,
    db_database = 'foxmind',
    db_charset = 'utf8'
elif PROFILE == 'prod':
    db_host = 'localhost',
    db_user = 'foxmind',
    db_password = 'Foxmind0827!',
    db_port = 3306,
    db_database = 'foxmind',
    db_charset = 'utf8'


def getEnvVar(tuple):
    return tuple[0]

if __name__ == '__main__':
    print(db_port)
    print(db_port[0])
    print(int(db_port[0]))


